Version

CustomCalculationFunction Constructor(String,Func<Double[],Double>,Int32,Int32)

Constructor.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal function As Func(Of Double(),Double), _
   ByVal minArgs As Integer, _
   ByVal maxArgs As Integer _
)
public CustomCalculationFunction( 
   string name,
   Func<double[],double> function,
   int minArgs,
   int maxArgs
)

Parameters

name
Function name that will be used in the formulas to reference this function.
function
Provides the calculation logic. The function takes an array of double parameters and returns the result as a double.
minArgs
Minimum numer of arguments supported by the function.
maxArgs
Maximum numer of arguments supported by the function.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also